package com.wyzz.hr.pojo.base;

import java.io.Serializable;

import com.wyzz.hr.pojo.Emailtemplate;

public abstract class BaseEmailtemplate implements Serializable {

	public BaseEmailtemplate() {
		hashCode = 0x80000000;
		etStatus = Integer.valueOf(1);
		etSendMode = Integer.valueOf(2);
		initialize();
	}

	public BaseEmailtemplate(String id) {
		hashCode = 0x80000000;
		etStatus = Integer.valueOf(1);
		etSendMode = Integer.valueOf(2);
		setId(id);
		initialize();
	}

	public BaseEmailtemplate(String id, String etTitleNo, String etTitle,
			String etContent, Integer etStatus, Integer etSendMode) {
		hashCode = 0x80000000;
		this.etStatus = Integer.valueOf(1);
		this.etSendMode = Integer.valueOf(2);
		setId(id);
		setEtTitleNo(etTitleNo);
		setEtTitle(etTitle);
		setEtContent(etContent);
		setEtStatus(etStatus);
		setEtSendMode(etSendMode);
		initialize();
	}

	protected void initialize() {
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
		hashCode = 0x80000000;
	}

	public String getEtTitleNo() {
		return etTitleNo;
	}

	public void setEtTitleNo(String etTitleNo) {
		this.etTitleNo = etTitleNo;
	}

	public String getEtTitle() {
		return etTitle;
	}

	public void setEtTitle(String etTitle) {
		this.etTitle = etTitle;
	}

	public String getEtContent() {
		return etContent;
	}

	public void setEtContent(String etContent) {
		this.etContent = etContent;
	}

	public String getEtNotes() {
		return etNotes;
	}

	public void setEtNotes(String etNotes) {
		this.etNotes = etNotes;
	}

	public void setEtStatus(Integer etStatus) {
		this.etStatus = etStatus;
	}

	public Integer getEtStatus() {
		return etStatus;
	}

	public void setEtSendMode(Integer etSendMode) {
		this.etSendMode = etSendMode;
	}

	public Integer getEtSendMode() {
		return etSendMode;
	}

	public boolean equals(Object obj) {
		if (null == obj)
			return false;
		if (!(obj instanceof Emailtemplate))
			return false;
		Emailtemplate emailtemplate = (Emailtemplate) obj;
		if (null == getId() || null == emailtemplate.getId())
			return false;
		else
			return getId().equals(emailtemplate.getId());
	}

	public int hashCode() {
		if (0x80000000 == hashCode) {
			if (null == getId())
				return super.hashCode();
			String hashStr = (new StringBuilder()).append(getClass().getName())
					.append(":").append(getId().hashCode()).toString();
			hashCode = hashStr.hashCode();
		}
		return hashCode;
	}

	public String toString() {
		return super.toString();
	}

	public static String REF = "Emailtemplate";
	public static String PROP_ID = "id";
	public static String PROP_ET_TITLE_NO = "etTitleNo";
	public static String PROP_ET_TITLE = "etTitle";
	public static String PROP_ET_CONTENT = "etContent";
	public static String PROP_ET_NOTES = "etNotes";
	public static String PROP_ET_STATUS = "etStatus";
	public static String PROP_ET_SEND_MODE = "etSendMode";
	private int hashCode;
	private String id;
	private String etTitleNo;
	private String etTitle;
	private String etContent;
	private String etNotes;
	private Integer etStatus;
	private Integer etSendMode;

}
